package com.bckj.freshnow.payment.repo;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bckj.freshnow.payment.entity.PayConfig;
import com.bckj.freshnow.payment.mapper.PayConfigMapper;
import org.springframework.stereotype.Repository;

@Repository
public class PayConfigRepository extends ServiceImpl<PayConfigMapper, PayConfig> {

    public PayConfig getByAppId(String appId) {
        return lambdaQuery().eq(PayConfig::getAppId, appId).one();
    }
}
